package cn.itcast.demo6.pojo;

import lombok.Data;

import java.security.PrivateKey;
import java.util.List;

/**
 * ClassName: OrderListResponse
 * Package: cn.itcast.demo6.pojo
 * Description:页面查询相关信息
 *
 * @Author MLH
 * @Create 2023/5/6 15:30
 * @Version 1.0
 */
@Data
public class OrderListResponse {
    private int total;
    private List<OrderList> data;
    private int page;
    private int pers;
    private boolean hasNext;

    public OrderListResponse(int total, List<OrderList> data, int page, int pers, boolean hasNext) {
        this.total = total;
        this.data = data;
        this.page = page;
        this.pers = pers;
        this.hasNext = hasNext;
    }

    public int getTotal() {
        return total;
    }

    public void setTotal(int total) {
        this.total = total;
    }

    public List<OrderList> getData() {
        return data;
    }

    public void setData(List<OrderList> data) {
        this.data = data;
    }

    public int getPage() {
        return page;
    }

    public void setPage(int page) {
        this.page = page;
    }

    public int getPers() {
        return pers;
    }

    public void setPers(int pers) {
        this.pers = pers;
    }

    public boolean isHasNext() {
        return hasNext;
    }

    public void setHasNext(boolean hasNext) {
        this.hasNext = hasNext;
    }
}
